package cn.ryh.redis.singleredis.controller;

import cn.ryh.redis.singleredis.RedisUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName SingleRedisController
 * @Description TODO
 * @Author RaoYH
 */
@RestController
@RequestMapping(value = "/singleRedisController")
public class SingleRedisController {
    @Resource
    RedisUtil<String,String> redisService;

    @RequestMapping(value = "/getValue")
    public String getValue(){
        String value = redisService.getValue( "key");
        return value;
    }
}
